#include <vector>
#include <string>

class ExplorBot;
class DIVA_VM;

class ExplorBotLibrary
{
public:
	static ExplorBotLibrary* getInstance();
	//void appendExplorBot(DIVA_VM* startVM, int maxlevel, int maxnum,std::vector<std::string> selectRef,bool exall);
	//void appendExplorBot(std::string botName, std::string startVMname, int maxlevel, int maxnum,std::vector<std::string> selectRef,bool isAuto);
	void appendExplorBot(ExplorBot* eb);
	void removeExplorBot(int i);
	void removeExplorBot(ExplorBot* eb);
	void doExplor();
	std::vector<ExplorBot*> getAutoApplyExplorBot();
	void clearList();
	void setDo(bool);

private:
	ExplorBotLibrary();
	static ExplorBotLibrary* _explorBotLibrary;
	std::vector<ExplorBot*> _ebList;
	int _showNextTime;
	int _showed;
	bool _do;
	void initFile();
	void saveFile();
	void loadFile();
	void addExplorBot(std::string botName, std::string startVMname, int maxlevel, int maxnum,std::vector<std::string> selectRef,bool isAuto);
};
